let IDNumber = location.href.split("?")[1].split("=")[1];
console.log(IDNumber);
$.get(
  "http://chst.vip:1234/api/getdiscountproduct",
  { productid: IDNumber },
  (res) => {
    let html = "";
    let body = "";

    $(res.result).each((i, item) => {
      html += `
      <div>
      <h2>${item.productName}</h2>

      <span>${item.productFrom}</span>
      <span>${item.productTime}</span>
      <span>${item.productTime}</span>
      <span>${item.productTips}</span>
      <h4>${item.productInfo}</h4>
      </div>
      ${item.productImg}
      `;
      body += `    ${item.productComment}`;
    });
    $(".contenttop").html(html);
    $(".contentbottom").html(body);
  },
  "json"
);
